<template>
  <view class="addBank">
    <view class="addBank-item">
      <text>银行</text>
      <view class="item-input">
        <input class="input" v-model="pamras.bankName" placeholder="请输入银行" style="padding: 0 20rpx;font-size: 25rpx;"/>
      </view>
    </view>
    <view class="addBank-item">
      <text>银行卡号</text>
      <view class="item-input">
        <input class="input" v-model="pamras.cardNo" placeholder="请输入银行卡号" style="padding: 0 20rpx;font-size: 25rpx;"/>
      </view>
    </view>
    <view class="addBank-item">
      <text>卡主姓名</text>
      <view class="item-input">
        <input class="input" v-model="pamras.name" placeholder="请输入卡主姓名" style="padding: 0 20rpx;font-size: 25rpx;"/>
      </view>
    </view>
    <view class="item-save"><button @click="sure" type="default">保存</button></view>
  </view>
</template>

<script>
export default {
  data() {
    return {
		pamras:{
			bankName:'',
			cardNo:'',
			name:'',
			levelOrder:1
		}
	};
  },
  methods:{
	  sure(){
		  this.$ajax('api/Member/AddBank',this.pamras).then(res => {
			  if(res.RequestStatus == 200){
				  uni.showToast({
				  	title: '绑定成功'
				  });
				  uni.navigateBack({
				  	
				  })
			  }
		  })
	  }
  }
};
</script>

<style lang="scss">
.addBank {
  padding-top: 56rpx;
  padding-left: 23.5rpx;
  .addBank-item {
    width: 690rpx;
    height: 132rpx;
    margin-bottom: 59rpx;
    text {
      color: #333333;
      font-size: 24rpx;
    }
    .item-input {
      .tips {
        color: #333333;
        font-size: 28rpx;
        margin-left: 26rpx;
      }
      height: 80rpx;
      border: 1rpx solid #c3c3c3;
      border-radius: 5rpx;
      display: flex;
      justify-content: space-between;
      margin-top: 26.5rpx;
      align-items: center;
    }
  }
  .item-save {
    width: 690rpx;
    height: 80rpx;
    // margin-left: 20.5rpx;
    font-size: 30rpx;
    text-align: center;
    line-height: 80rpx;
    background-color: #202029;
    // margin-top: 95rpx;
    button {
      background-color: #202029;
      color: #ffffff;
    }
  }
}
</style>
